/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class OriginalImg {
    @NotNull
    private final String height;
    @NotNull
    private final String imgUrl;
    @NotNull
    private final String width;

    public OriginalImg(@NotNull String width, @NotNull String height, @NotNull String imgUrl) {
        Intrinsics.checkNotNullParameter(width, "width");
        Intrinsics.checkNotNullParameter(height, "height");
        Intrinsics.checkNotNullParameter(imgUrl, "imgUrl");
        this.width = width;
        this.height = height;
        this.imgUrl = imgUrl;
    }

    public static /* synthetic */ OriginalImg copy$default(OriginalImg originalImg, String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = originalImg.width;
        }
        if ((i2 & 2) != 0) {
            str2 = originalImg.height;
        }
        if ((i2 & 4) != 0) {
            str3 = originalImg.imgUrl;
        }
        return originalImg.copy(str, str2, str3);
    }

    @NotNull
    public final String component1() {
        return this.width;
    }

    @NotNull
    public final String component2() {
        return this.height;
    }

    @NotNull
    public final String component3() {
        return this.imgUrl;
    }

    @NotNull
    public final OriginalImg copy(@NotNull String width, @NotNull String height, @NotNull String imgUrl) {
        Intrinsics.checkNotNullParameter(width, "width");
        Intrinsics.checkNotNullParameter(height, "height");
        Intrinsics.checkNotNullParameter(imgUrl, "imgUrl");
        return new OriginalImg(width, height, imgUrl);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof OriginalImg)) {
            return false;
        }
        OriginalImg originalImg = (OriginalImg) obj;
        return Intrinsics.areEqual(this.width, originalImg.width) && Intrinsics.areEqual(this.height, originalImg.height) && Intrinsics.areEqual(this.imgUrl, originalImg.imgUrl);
    }

    @NotNull
    public final String getHeight() {
        return this.height;
    }

    @NotNull
    public final String getImgUrl() {
        return this.imgUrl;
    }

    @NotNull
    public final String getWidth() {
        return this.width;
    }

    public int hashCode() {
        return (((this.width.hashCode() * 31) + this.height.hashCode()) * 31) + this.imgUrl.hashCode();
    }

    @NotNull
    public String toString() {
        return "OriginalImg(width=" + this.width + ", height=" + this.height + ", imgUrl=" + this.imgUrl + ')';
    }
}